package com.seh.contentcenter.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class OrderDTO {
    //订单编号
    private Integer orderId;
    //下单用户id
    private Integer userId;
    //卖家id
    private Integer sellerId;
    //商品id
    private Integer goodsId;
    //收货地址id
    private Integer addressId;
    //订单总价
    private Double orderPrice;
    //订单状态
    private Integer orderStatus;
    //支付方式
    private String paymentMethod;
    //下单时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //支付时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date paymentTime;
    //发货时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date shippingTime;
    //成交时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date confirmTime;
    //逻辑删除
    private Integer isDel;
    //发货地址
    private String address;
    //收货地址
    private String receiveAddress;
    //买家信息
    private UserDTO userDTO;
    //商品信息
    private GoodsDTO goodsDTO;
}
